package com.commander.util;

import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.graphics.FontData;
import org.eclipse.swt.graphics.GC;
import org.eclipse.swt.graphics.RGB;
import org.eclipse.swt.printing.Printer;
import org.eclipse.swt.widgets.Text;

public class CommanderPrinter {
	
	public static CommanderPrinter thePrinter = new CommanderPrinter();
	private CommanderPrinter(){}
	private Font font;
	private Color foregroundColor, backgroundColor;
	private Printer printer;
	private GC gc;
	private FontData[] printerFontData;
	private RGB printerForeground, printerBackground;
	
	int lineHeight = 0;
	int tabWidth = 0;
	int leftMargin, rightMargin, topMargin, bottomMargin;
	int x, y;
	int index, end;
	String textToPrint;
	String tabs;
	StringBuffer wordBuffer;
	
	public static CommanderPrinter getPrinter(){return thePrinter;}
}
